import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
        appBar: AppBar(
          title: const Text("你好111"),
        ),
        body: listV()),
  ));
}

class listV extends StatefulWidget {

  @override
  State<StatefulWidget> createState()=>_lsitVState();
}

class _lsitVState extends State<listV> {

  int count=0;
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: <Widget>[
          Text("点击次数:${this.count}"),
          FloatingActionButton(
              child:Text("增加"),
              onPressed:() {
                setState(() {
                  this.count++;
                });
              }
          )
        ],
      ),
    );
  }
}
